﻿using UnityEngine;
using System.Collections;

public interface SocketListener
{

    void SocketReceiveMessage(byte[] message);

    void SocketDisconnect(string disconnectInfo);

    /// <summary>
    /// 用于重连,在确认socket断开1秒后进行重连
    /// </summary>
    /// <param name="disconnectInfo">最后一条断开连接的消息</param>
    void OnSocketDisconnect(string disconnectInfo);
}
